home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1989 June
/
64er_Magazin_89-06_1989_Markt__Technik_de.d64
/
install me
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
4KB
|
137 lines
1000 ifaathensys6144
1010 poke53281,0:poke53280,0:print"[153]"
1020 fori=1to3:readpr$(i):next
1030 data"menu+cli","menu ","cli "
1040 fori=0to3:readrm$(i):next
1050 data"ramdisk","puffer ","frei ","prg "
1060 c=(peek(1)and64)/-64:d0=8:d1=0
1070 d0$="vc 1571 als unit "+chr$(d0+48)
1080 d1$="keine ":d2$="nein"
1090 print"[147]"chr$(142)
1100 print"installationsprogramm zu bdos
1110 [153]:[153]
1120 [153]"hardware :"
1130 [153]
1140 [139]c[167][153]"1) computer :c128 (d)
1150 ifnotcthenprint"1) computer :c64 "
1160 print"2) 1.floppy :"d0$
1170 print"3) 2.floppy :"d1$
1175 rem print"4) floppy an rs232:"d2$
1180 print""
1190 input"richtig (1-4/j) ";a$
1200 ifa$="j" then1440
1210 ifa$="1"thenc=-1-c:goto1100
1220 ifa$="2"thengosub1250:d0=d:d0$=d$:goto1090
1230 ifa$="3"thengosub1250:d1=d:d1$=d$:goto1090
1231 rem ifa$="4"and d2$<>"ja " then d2$="ja ":goto1100
1232 rem ifa$="4"and d2$<>"nein" then d2$="nein":goto1100
1240 goto1180
1250 print"[147]floppy :
1260 [153]"1) keine
1270 print"2) vc 1571
1280 [153]"3) vc 1570
1290 print"4) andere
1300 [153]""
1310 [133]"welche (1-4) ";a$
1320 [139]a$[179]"1"[176]a$[177]"4"[167]1300
1330 a[178][197](a$)
1340 [139]a[178]1[167]d$[178]"keine":d[178]0:[142]
1350 [139]a[178]2[167]d$[178]"vc 1571"
1360 [139]a[178]3[167]d$[178]"vc 1570"
1370 [139]a[178]4[167]d$[178]"andere floppy"
1380 [153]"
1390 input"geraeteadresse (4-15) ";a$
1400 d=val(a$)
1410 ifd<4ord>15then1380
1420 d$=d$+" als unit"+str$(d)
1430 return
1440 print"[147]":pr=1:fm=0:fori=5to8:m(i)=0:next
1445 if d2$="ja " then m(8)=3
1450 ifcthens0=70
1460 ifnotcthens0=16
1470 ifpr=1thenb0=2:m(5)=3:m(6)=3
1480 ifpr=2thenb0=2:m(5)=3:m(6)=1
1490 ifpr=3thenb0=4:m(5)=1:m(6)=1
1500 mc=0:ifpr<3andnotcthenmc=3
1510 s1=0:b1=0
1520 s1=-4*((m(5)=0)+(m(6)=0)+(m(7)=0)+(m(8)=0))-2*(mc=0)
1530 fori=5to8:ifm(i)=3thennext:goto1550
1540 ifm(i)=1thenb1=b1+4:next
1550 si=s0+s1:si$=str$(si):bu=b0+b1:bu$=str$(bu)
1560 print""chr$(142)
1570 print"installationsprogramm zu bdos
1580 [153]
1590 [153]"software :"
1600 [153]"1) hauptprogramm :"pr$(pr)
1610 [153]"2) $8000-$9000 :"rm$(m(8))
1620 [153]"3) $7000-$8000 :"rm$(m(7))
1630 [153]"4) $6000-$7000 :"rm$(m(6))
1640 [153]"5) $5000-$6000 :"rm$(m(5))
1650 [153]"=> ramdisk :"si$" kbyte "
1660 [153]"=> puffergroesse :"bu$" kbyte "
1670 [153]"
1680 input"richtig (1-5/j) ";a$
1690 ifa$="j"then1830
1700 ifa$<"1"ora$>"5"then1230
1710 a=val(a$):onagoto1730,1770,1750,1790,1810
1720 goto1440
1730 pr=pr+1:ifpr=4thenpr=1
1740 goto1470
1750 if m(7)<>3 thenm(7)=m(7)+1:ifm(7)=3thenm(7)=0
1760 goto1510
1770 if m(8)<>3 thenm(8)=m(8)+1:ifm(8)=3thenm(8)=0
1780 goto1510
1790 ifm(6)<>3thenm(6)=m(6)+1:ifm(6)=3thenm(6)=0
1800 goto1510
1810 ifm(5)<>3thenm(5)=m(5)+1:ifm(5)=3thenm(5)=0
1820 goto1510
1830 print"[147]installationsprogramm zu bdos
1840 [153]"geben sie ihre wunschfarben ein:":[153]
1850 [133]"hintergrund 6cmdcmdcmd";hf
1860 [153]:
1870 [133]"text 14cmdcmdcmdcmd";tf
1880 hf$[178][199](48[170]hf[171]7[172](hf[177]9))
1890 tf$[178][199](48[170]tf[171]7[172](tf[177]9))
1900 [153]"loadbitte warten, ich erstelle ladedatei
1910 open1,8,15,"s:autoload"
1920 close1
1930 open1,8,1,"autoload"
1940 print#1," bd 1.43ba\a000"
1950 m4$="f"
1960 ifpr=3andnotcthenprint#1,"cm 1.0a9f/a\9f00"
1970 ifpr<>3andnotcthenprint#1,"cs 1.1ec/a\c000":m4$="7"
1980 lr$="c":rem drive ramdisk
1990 la$="a":rem drive 1
2000 lb$="b":rem drive 2
2010 m3$="0":ifm(8)=0thenm3$="c"
2020 m2$="0"
2030 ifm(7)= 0andm(6)= 0thenm2$="f"
2040 ifm(7)<>0andm(6)= 0thenm2$="c"
2050 ifm(7)= 0andm(6)<>0thenm2$="3"
2060 m1$="0":ifm(5)=0thenm1$="3"
2070 mx$="0"+m1$+m2$+m3$+"0"+m4$
2080 ifnotcthen2120
2090 rd$="vr 2.0c98/a\9800\"+lr$+" 0"+mx$+"e3ffffffe"
2100 dd$="vd 1.5c9/a\9000\"
2105 xd$="vx 1.0b8/a\8000\d"
2110 goto2140
2120 rd$="cr 1.0c98/a\9800\"+lr$+" 4"+mx$+"f"
2130 dd$="cd 2.0a9/a\9000\"
2135 xd$="cx 1.0a8/a\8000\d"
2140 dd$=dd$+la$+":"+mid$(str$(d0),2)+",0 "
2150 ifd1=0then2170
2160 dd$=dd$+lb$+":"+mid$(str$(d1),2)+",0"
2170 print#1,rd$
2180 print#1,dd$
2185 if d2$="ja "thenprint#1,xd$
2190 pr$="pr 2.2"+chr$(64+pr)+"28/a\2800\8 "+tf$+" "+hf$+" "
2200 b1=int(bu/4):b0=(bu-b1*4)*4
2210 pr$=pr$+chr$(48+b1)+chr$(48+b0)+"00"
2220 print#1,pr$
2230 close1
2240 print"fertig !"
2250 print:print
2260 input"wollen sie gleich starten (j/n) ";a$
2270 print:aa=1
2280 ifa$="j"thenload"loader 1.0d18",8,8